<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0" />
    <meta name="author" content="火星科技 http://mars3d.cn " />
    <meta name="apple-touch-fullscreen" content="yes" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="x5-fullscreen" content="true" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    <!-- 标题及搜索关键字 -->
    <meta name="keywords" content="火星科技,cesium,3D,GIS,marsgis,三维,地球,地图,开发,框架,系统,示例,资料,模型,离线,外包,合肥,安徽,中国" />
    <meta
      name="description"
      content="火星科技 合肥火星 合肥火星科技 合肥火星科技有限公司 leaflet leaflet框架 leaflet开发 cesium cesium开发 cesium框架 三维 地球 模型  gis marsgis 地图离线 地图开发 地图框架 地图外包 框架 开发 外包  地图离线 二维地图 三维地图 全景漫游 地理信息系统 云GIS 三维GIS GIS平台 WebGIS"
    />

    <link rel="shortcut icon" type="image/x-icon" href="/img/favicon/favicon.ico" />
    <title>无人机航拍过程 | Mars3D | 三维地图 | 火星科技 | 合肥火星科技有限公司</title>

    <style>
      .mars-city {
        position: relative;
        left: 0;
      }

      .mars-city .arrow {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 45px;
        height: 2px;
        transform: rotate(-45deg) translate(5px, -15px);
        background-color: #28bbf0;
      }

      .mars-city-desc {
        width: 400px;
        max-height: 223px;
        overflow: auto;
        padding: 5px 10px;
        cursor: default;
        opacity: 0.96;
        border: 1px solid #2592fc;
        box-shadow: 0px 2px 21px 0px rgba(33, 34, 39, 0.55);
        box-sizing: border-box;
        background: rgb(14 14 14 / 68%);
        position: relative;
        top: -28px;
        left: 30px;
      }

      .mars-city-desc_title {
        position: relative;
        padding-bottom: 5px;
        text-align: center;
        margin-bottom: 7px;
      }

      .mars-city-desc_title::after {
        content: "";
        width: 100%;
        height: 1px;
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: #2592fc;
      }

      .mars-city-desc_content {
        text-indent: 2em;
        letter-spacing: 3px;
        padding-bottom: 10px;
        max-width: 400px;
      }

      .mars-city-desc_content p {
        margin: 0;
      }
    </style>

    <!--第三方lib-->
    <script
      type="text/javascript"
      src="/lib/include-lib.js"
      libpath="/lib/"
      include="jquery,layer,toastr,font-awesome,bootstrap,layer,haoutil,mars3d"
    ></script>

    <link href="/css/style.css" rel="stylesheet" />
  </head>

  <body class="dark">
    <div id="mars3dContainer" class="mars3d-container"></div>

    <div class="infoview">
      <input type="button" class="btn btn-primary" value="开始" id="startBtn" onclick="clickStart()" />
      <input type="button" class="btn btn-primary" value="暂停" id="pauseBtn" onclick="clickPause()" />
      <input type="button" class="btn btn-primary" value="继续" id="continueBtn" onclick="clickContinue()" />
      <input type="button" class="btn btn-primary" value="停止" id="stopBtn" onclick="clickStop()" />
    </div>

    <script src="/js/common.js"></script>
    <script src="./map.js"></script>
    <script type="text/javascript">
      "use script" //开发环境建议开启严格模式
      //UI界面相关
      function initUI() {
        $("#pauseBtn").hide()
        $("#stopBtn").hide()
        $("#continueBtn").hide()
      }

      const formState = {
        isStart: false,
        isPause: false
      }

      function clickStart() {
        $("#startBtn").hide()
        $("#pauseBtn").show()
        $("#stopBtn").show()

        circleFixedRoute.start() // 启动漫游
        attackFixedRoute.start() // 启动漫游
        udpateState()
      }

      function clickPause() {
        $("#continueBtn").show()
        $("#pauseBtn").hide()
        circleFixedRoute.pause()
        attackFixedRoute.pause()
        udpateState()
      }

      function clickContinue() {
        $("#continueBtn").hide()
        $("#pauseBtn").show()
        circleFixedRoute.proceed()
        attackFixedRoute.proceed()
        udpateState()
      }

      function clickStop() {
        $("#pauseBtn").hide()
        $("#stopBtn").hide()
        $("#continueBtn").hide()
        $("#startBtn").show()
        stopPlay(true)
      }

      function udpateState() {
        setTimeout(() => {
          formState.isStart = circleFixedRoute.isStart
          formState.isPause = circleFixedRoute.isPause
        }, 100)
      }
    </script>
  </body>
</html>
